package cn.oms.esb.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("email_send_record")
@ApiModel(value="EmailSendRecord对象", description="")
public class EmailSendRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发件人邮箱")
    @TableField("EMAIL_SENDER_EMAIL")
    private String emailSenderEmail;

    @ApiModelProperty(value = "发件人名称")
    @TableField("EMAIL_SENDER_NAME")
    private String emailSenderName;

    @ApiModelProperty(value = "收件人邮箱")
    @TableField("EMAIL_RECEIVER_EMAIL")
    private String emailReceiverEmail;

    @ApiModelProperty(value = "收件人名称")
    @TableField("EMAIL_RECEIVER_NAME")
    private String emailReceiverName;

    @ApiModelProperty(value = "邮件类型（异常提醒、补货通知、重置密码等）(对应邮件类型字典)")
    @TableField("EMAIL_TYPE_CODE")
    private String emailTypeCode;

    @ApiModelProperty(value = "邮件发送时间(当时发送的时间)")
    @TableField("EMAIL_SEND_TIME")
    private LocalDate emailSendTime;

    @ApiModelProperty(value = "邮件格式：正常格式邮件0 HTML格式邮件1 MARCKDOWN格式2")
    @TableField("EMAIL_FORMAT")
    private Integer emailFormat;

    @ApiModelProperty(value = "邮件标题")
    @TableField("EMAIL_TITLE")
    private String emailTitle;

    @ApiModelProperty(value = "邮件正文")
    @TableField("EMAIL_CONTENT")
    private String emailContent;

    @ApiModelProperty(value = "是否有附件：无0 有1")
    @TableField("EMAIL_ATTACHMENT_STATUS")
    private Integer emailAttachmentStatus;

    @ApiModelProperty(value = "附件地址：多个附件用、隔开路径")
    @TableField("EMAIL_ATTACHMENT_ADDRESS")
    private String emailAttachmentAddress;

    @ApiModelProperty(value = "邮件发送状态：发送成功1，发送失败0")
    @TableField("EMAIL_SENDING_STATUS")
    private Integer emailSendingStatus;

    @ApiModelProperty(value = "发送记录添加时间（发送响应返回时间）")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
